﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FunctionSelector.aspx.cs" Inherits="Sdepci.InfoCode.Web.Authority.FunctionSelector" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>菜单选择</title>
    <link rel="stylesheet" type="text/css" href="../Css/Style.css" />
    <link rel="stylesheet" type="text/css" href="../Css/Backstage.css" />
    <base target="_self" />
    <script type="text/javascript" src="../Javascript/Tree.js"></script>
    <script type="text/javascript">
    function ShowTree()
    {
        imagesDir = "../Images/Tree/";
        menuIconDir = "../Images/MenuIcon/";
        affect = "menutree";
        icon = true;
        selected = window.dialogArguments.document.getElementById("FuncGuids").value;
        InitTreeXml();
        NodeAllExpand(rootNode);
    }
    
    function GetFunctions()
    {
        window.dialogArguments.document.getElementById("FuncGuids").value = GetReturnValue();
        self.close();
    }
    </script>
</head>
<body onload="javascript:ShowTree();">
    <form id="form1" runat="server">
    <div id="container">
        <div style="text-align: right;">
            [<span onclick="javascript:SelectAll();" style="cursor: pointer;">全选</span>]
            [<span onclick="javascript:NoSelectAll();" style="cursor: pointer;">全不选</span>]
            [<span onclick="javascript:NodeAllExpand(rootNode);" style="cursor: pointer;">全部展开</span>]
            [<span onclick="javascript:NodeFirstLevelSetBy(rootNode);" style="cursor: pointer;">全部收起</span>]
        </div>
        <div id="menutree" style="text-align: left; border: solid 1px #99cccc; height: 380px; overflow: auto;">
            <div id="root_child">载入中...</div>
        </div>
        <div id="buttonregion">
            <input type="button" class="button" value="确定" onclick="javascript:GetFunctions();" />
            <input type="button" class="button" value="取消" onclick="javascript:self.close();" />
        </div>
    </div>
    </form>
</body>
</html>
